
CC = gcc

OBJS = ponyedit.o pony.o graphics.o path.o selection.o dialog.o list_dir.o parse.o maps.o main_window.o map_area.o new_map_window.o

CFLAGS = -O2 -Wall `sdl-config --cflags`
LDFLAGS = -s
LIBS = -lSDL_gfx -lSDL_image `sdl-config --libs`

all: ponyedit

clean:
	rm -f *.o *~ ponyedit

ponyedit: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

%.o: %.c
	$(CC) $(CFLAGS) -o $@ -c $<

